﻿
#ifndef UDPSOCKET_H
#define UDPSOCKET_H
#include <QSocketNotifier>
#include <QUdpSocket>
#include <cstdlib>
#include <stdio.h>
#include <QObject>
#include <QtNetwork/QNetworkInterface>
#include <QDebug>
#include <QTextCodec>
#include <QTime>
#include <QHostInfo>
#include "systemfile.h"

class udpSocket : public QObject
{
    Q_OBJECT
public:
    explicit udpSocket(QObject *parent = 0);

    QUdpSocket *udpBroadLink; //udp广播
    bool dev_reboot;
    QString my_str;
    QString  recevePS;
public slots:
    QString count_qont();
    QString getXorEncrypt(const QString str);
    int getXor(int m);
    QString IntToChar(int n);
    int CharToInt(QString n);
    void udp_broadcast_reciver_data(void);
signals:
    void singalSetAxis();

public:
   // axisTask axis;
};

#endif // UDPSOCKET_H
